import { post, postView } from './http';

// const bastUrl = process.env.NODE_ENV === 'production' ? '/api' : '/api';
// const bastUrl = '/api';
// const bastUrl = 'http://172.20.10.10:9900/api';
// const bastUrl = 'http://192.168.2.20:9900/api';

// 1.1.13企业客户账户列表余额查询BASIC_Q_queryAccountsBanlance ,
export const queryAccountsBanlance = (vm, params) => postView(vm, 'BASIC_Q_queryAccountsBanlance', params);

// 境内人民币行内汇款
export const territoryRMBInnerTransfer = (vm, params) => postView(vm, 'Transfer_A_territoryRMBInnerTransfer', params);

// 境内人民币跨行汇款
export const territoryRMBOuterTransfer = (vm, params) => postView(vm, 'Transfer_A_territoryRMBOuterTransfer', params);

// 活期转定期
export const currentToRegular = (params) => post('FINANCIAL_A_currentToRegular', params);

// 1.1.5企业网银待授权队列查询
export const queryJobList = (vm, params) => postView(vm, 'Transfer_Q_readyCheckTransfer', params);

// 1.1.6企业网银待授权明细列表
export const queryAuthTransfer = (vm, params) => postView(vm, 'Transfer_Q_readyAuthTransfer', params);

// 1.1.7企业网银待授权明细详情
export const queryAuthDetailTransfer = (vm, params) => postView(vm, 'Transfer_Q_readyAuthDetailTransfer', params);

// 1.1.11授权信息提交
export const updateAuthFlwRequest = (vm, params) => postView(vm, 'Transfer_U_updateAuthFlwTransfer', params);

// 1.1.8企业网银授权历史列表
export const queryAuthHistoryTransfer = (vm, params) => postView(vm, 'Transfer_Q_authHistoryTransfer', params);

// 1.1.4限额查询
export const queryUsableAmount = (vm, params) => postView(vm, 'XE_Q_usableAmountQuery', params);
